package com.itcast.mapper;

import com.itcast.pojo.Member;
import com.itcast.pojo.Order;
import com.itcast.pojo.OrderSetting;
import com.itcast.vo.OrderInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderMapper {
    OrderSetting findOrderSettingByDate(Date orderDate);

    Member findMemberByTelephone( Integer memberId);

    void addMember(Member member);

    Order findOrder(@Param("memberId") Integer memberId,@Param("setmealId") Integer setmealId,@Param("orderDate") Date orderDate);

    void addOrder(Order order1);

    void updateOrder(Date orderDate);

    List<Member> findFamily(Integer id);

    String findNameById(Integer id);

    OrderInfo findOrderByMemberId(Integer id);

    String findSetmealBySetmealId(Integer id);
}
